package org.example.blog.pojo;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Column;
import java.util.Date;

@Entity
@Table ( name ="tb_comment" )
public class Comment {

  	@Id
	private String id;
  	@Column(name = "parent_content" )
	private String parent_content;
  	@Column(name = "article_id" )
	private String articleId;
  	@Column(name = "content" )
	private String content;
  	@Column(name = "user_id" )
	private String userId;
	@Column(name = "user_avatar" )
	private String userAvatar;
	@Column(name = "user_name" )
	private String username;
	@Column(name = "state" )
	private String state = "1";
	@Column(name = "create_time" )
	private Date create_time;
	@Column(name = "update_time" )
	private Date update_time;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getParent_content() {
		return parent_content;
	}

	public void setParent_content(String parent_content) {
		this.parent_content = parent_content;
	}

	public String getArticleId() {
		return articleId;
	}

	public void setArticleId(String articleId) {
		this.articleId = articleId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserAvatar() {
		return userAvatar;
	}

	public void setUserAvatar(String userAvatar) {
		this.userAvatar = userAvatar;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Date getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}

	public Date getUpdate_time() {
		return update_time;
	}

	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}





}
